package cn.zyq.ykb.beans.config;

import cn.zyq.ykb.system.common.BaseBean;
import com.fasterxml.jackson.annotation.JsonInclude;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.persistence.*;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;
import java.io.Serializable;

/**
 * 配置-返佣金对象 configBrokerage
 *
 * @author SystemAuth
 * @date 2023-05-29
 */
@Data
@Entity
@Table(name = "`configBrokerage`")
@JsonInclude(value = JsonInclude.Include.NON_NULL)
public class ConfigBrokerage  extends BaseBean implements Serializable {
    /**
     * 主键id，用于关联
     */
    @Id
    @GeneratedValue(strategy = GenerationType.IDENTITY, generator = "JDBC")
    @Column(name = "`configBrokerageID`")
    @ApiModelProperty("主键id，用于关联")
    private Integer configBrokerageID;
    /**
     * 用户ID
     */
    @Column(name = "`userID`")
    @ApiModelProperty("用户ID")
    private Integer userID;
    /**
     * 团队长最大比例
     */
    @Column(name = "`captainProportion`")
    @ApiModelProperty("团队长最大比例")
    private Integer captainProportion;
    /**
     * 团队长最小比例
     */
    @Column(name = "`captainMin`")
    @ApiModelProperty("团队长最小比例")
    private Integer captainMin;
    /**
     * 用户最大比例
     */
    @Column(name = "`userMax`")
    @ApiModelProperty("用户最大比例")
    private Integer userMax;
    /**
     * 用户最小比例
     */
    @Column(name = "`userMin`")
    @ApiModelProperty("用户最小比例")
    private Integer userMin;
    /**
     * 团队长默认比例
     */
    @Column(name = "`defaultCaptainProportion`")
    @ApiModelProperty("团队长默认比例")
    private Integer defaultCaptainProportion;
    /**
     * 用户默认比例
     */
    @Column(name = "`defaultUserProportion`")
    @ApiModelProperty("用户默认比例")
    private Integer defaultUserProportion;

    /**
     * 类型（0、默认服务商设置； 1、平台设置）
     */
    @Column(name = "`type`")
    @ApiModelProperty("类型（0、默认服务商设置； 1、平台设置）")
    private Integer type;

    @Transient
    @ApiModelProperty("用户名")
    private String userName;


}
